package com.wang.spring.lifecycle.c_initializingbean;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class AllLifeConfiguration {

    @Bean(initMethod = "open",destroyMethod = "close")
    public Pen3 pen3() {
        return new Pen3();
    }
}
